package com.simou.service;

import com.simou.pojo.Bill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BillService {
    //根据条件查询用户          limit start,pageSize
    List<Bill> getBillsByLimit(@Param("start") int start, @Param("pageSize") int pageSize, @Param("productName") String productName, @Param("providerId") long providerId,@Param("isPayment") int isPayment);

    int getBillsCount( @Param("productName") String productName, @Param("providerId") long providerId,@Param("isPayment") int isPayment);

    int addBill(Bill bill);

    int updateBill(@Param("id") long id,@Param("bill")Bill bill);

    int deleteBill(long id);
}
